package com.heima.model.comment.dtos;

import com.heima.utils.common.EnumValue;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class CommentRepayLikeDTO {
    /**
     * 回复id
     */
    @NotNull(message = "回复id 不能为空")
    private String commentRepayId;
    /**
     * 0：点赞
     * 1：取消点赞
     */
    @EnumValue(intValues ={1,0},message = "必须为指定的1或0")
    private Short operation;
}